<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
     <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>主题列表</title>
</head>
<body>
<%@ include file="/common/islogin.jsp" %>
    <%@ include file="/common/header.jsp" %>
    <table width="80%" border="1" align="center">
       <tr align="right" bgcolor="#00CCFF">
          <td colspan="3">
             <a href="adminindex.jsp">首页&nbsp;</a>
  
             <a href="adminlogoff">注销登陆&nbsp;</a>
          </td>
       </tr>
       <tr align="center">
          <td colspan="3">主题管理</td>
       </tr>
        <tr bgcolor="#0099CC">
         <td colspan="3">
           <form action="searchtopic" method="post">
                                       请输入您要搜索的主题名：
               <input type="text" name="title" size="15" maxlength="50">
               <input type="submit" value="提交">
           </form>
         </td>
        </tr>
       <tr align="center" bgcolor="#00CCFF">
          <td width="50%">文章标题</td>
          <td width="36%">作者</td>
          <td width="14%">删除</td>
       </tr>
       <c:forEach items="${topics}" var="topic">
          <tr align="center">
             <td>${topic.title }</td>
             <td>${topic.author }</td>
             <td><a href="topicdelete?topicid=${topic.id }">删除</a></td>
          </tr>
       </c:forEach>
    </table>
    <div align="center">
   <a href="topicmanager?pageNum=1">第一页</a> &nbsp;&nbsp;
   <a href="topicmanager?pageNum=${lastpage}">上一页</a> &nbsp;&nbsp;
   <a href="topicmanager?pageNum=${nextpage}">下一页</a> &nbsp;&nbsp;
   </div>
     <%@ include file="/common/footer.jsp" %>
</body>
</html>